MySQL Server unter Debian Scratch installieren
Der folgende Befehl installiert das Metapackage mysql-server, was ab Debian Scratch mariadb-server-10.1 installiert.
tux@earth:~$ sudo apt-get install mysql-server
root Passwort setzen und Datenbankserver einrichten
tux@earth:~$ sudo mysql_secure_installation
Enter current password for root (enter for none): <enter>
Set root password? [Y/n] Y
New password:
Re-enter new password:
Remove anonymous users? [Y/n] n
Disallow root login remotely? [Y/n] n
Remove test database and access to it? [Y/n] n
Reload privilege tables now? [Y/n] Y
root erlauben sich über PhpMyAdmin anzumeden
tux@earth:~$ sudo dpkg-reconfigure phpmyadmin
Reinstall database for phpmyadmin: <Yes>
Connection method for MySQL database server for phpmyadmin: TCP/IP
Host name of the MySQL database server for phpmyadmin: localhost
Port number for the MySQL service: 3306
MySQL database name for phpmyadmin: phpmyadmin
MySQL username for phpmyadmin: root
MySQL application password for phpmyadmin: pass # OR ANY PASSWORD YOU WANT
Password confirmation: pass
Name of the database's administrative user: root
Web server to reconfigure automatically: apache2
An error occurred while installing the database: ignore